<include file="Admin:header" /> 
{__CONTENT__}
</body>

</html>
<script language="JavaScript">
    
    function yulan(aa, bb) {
        //地址id
        var x = document.getElementById(aa);
        var file = x.value;//文件地址
        if (file) {
            //执行页面生成地址
            //当前域名
            var host =bb; //"http://wpt.wei580.com";
            var ajax = "index.php?m=Index&a=wordtohtml&file=" + file;
            $.post(ajax, {}, function (json) {
                json = JSON.parse(json);
                if (json) {
                    //获得dom
                    var url = json.url;//连接地址
                    //window.open(bb+url);
                    $.get(url, {}, function (html) {
                        var reg = /(src=["|'])([^"|^']+["|'])/g;
                        //替换图片地址
                        html = html.replace(reg, "$1"+json.path+"$2");

                        if (editor) editor.html(html);

                    })
                }

            })

        }
    }
</script>